import { App, Component } from 'vue'
import AntDesignVue from './ant-design-vue'

import VcButton from './button/main';
import VcSvgIcon from './svg-icon/main.vue'
import VcPage from './page/main.vue'

const components: Array <Component> = [
  VcButton,
  VcSvgIcon,
  VcPage
]


export default {
  install(app: App) {
    components.forEach((component: any)  => {
      app.component(component.name, component)
    })
    app.use(AntDesignVue)
  }
}